<?php

	/*
	* @header div
	* @header pname 
	*/

	require_once("connect_to_database.php");

	$project_name = mysql_real_escape_string($_POST['project']);
	$div = mysql_real_escape_string($_POST['div']);
	
	$query = ("SELECT `divChildren` FROM `points` WHERE projectName='".$project_name."' AND divID = '".$div."'");
	$result = mysql_query($query);
	if(!$result)
		die(mysql_error());

	//Display messages 
	while ($row = mysql_fetch_assoc($result)) {
		echo ($row['divChildren']);
	}
	
	echo ('<script type="text/javascript">
	//autoRefresh
	var users_timeout = startDiv6CounterRefresh();
	</script>');

?>